import NotFound from "./404"
import ReduxCount from "@/page/ReduxCount/index.jsx" // 使用了craco插件配置了webpack path alias
import ReduxCountNew from "@/page/ReduxCountNew/index.jsx"
import ReduxCountNew1 from "@/page/ReduxCountNew/index1.jsx"
import { Navigate } from "react-router-dom"
const routes = [
  {
    path: "/",
    element: <Navigate to="/ReduxCountNew1" />
  },

  {
    path: "/ReduxCount",
    element: <ReduxCount />
  },
  {
    path: "/ReduxCountNew",
    element: <ReduxCountNew />
  },
  {
    path: "/ReduxCountNew1",
    element: <ReduxCountNew1 />
  },
  {
    path: "*",
    element: <NotFound />
  }
]

export default routes
